package org.jsola.hr.web;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

@RestController
public class TestController {

    @PostMapping(value = "/test")
    public Map test(@RequestParam(value = "key1",required = false)String key1,
                    @RequestParam(value = "key2", required = false)String key2,
                    HttpServletRequest request){
        System.out.println("key1: " + key1);
        System.out.println("key2: " + key2);
        String key11 = request.getParameter("key1");
        System.out.println("ke11: " + key11);
        return new HashMap<>();
    }

}
